package hibernate.method.interfaces;

import hibernate.model.News;

import java.util.List;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

public interface NewsMethodsInterface {

	public List<News> listAllNews (SessionFactory sessionFactory, Session session);
	
	public void addNews (SessionFactory sessionFactory, Session session, String subject, String content);
	
	public void deleteNews (SessionFactory sessionFactory, Session session, News n);
	
	public News idToNews (SessionFactory sessionFactory, Session session, int news_id);
	
}
